package com.service.gmall.feign.product;

import com.service.gmall.common.result.Result;
import com.service.gmall.model.to.CategoryTreeTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author alpha
 * @className: CategoryFeignClient
 * @date 2022/8/26 11:49
 * @Description
 */
@RequestMapping("/api/inner/rpc/product")
@FeignClient("service-product")
public interface CategoryFeignClient {
    /**
     * @param
     * @description: 远程调用返回三级查询结果树
     * @return: com.service.gmall.common.result.Result<java.util.List<com.service.gmall.model.to.CategoryTreeTo>>
     * @author: alpha
     * @date: 2022/8/26 13:44
     */
    @GetMapping("/category/tree")
    Result<List<CategoryTreeTo>> getAllCategoryTree();
}
